﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div style="padding:7 8 8 16;height:80;border:1px solid #CCC;background:url(qa/images/mr-qa-homepage-questiontitile.gif) repeat-x;">
    <span style="height:20;padding:0 0 0 4;font-size:10pt;font-weight:bold;">个人中心</span>
    <p style="padding:4 0 4 2;"><html:link page="/user.mrqa?action=prechangepassword">修改密码</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/user.mrqa?action=prechangeuserprofile">修改个人信息</html:link></p>
</div>
<br>
<div style="padding:7 8 8 16;height:80;border:1px solid #CCC;background:url(qa/images/mr-qa-homepage-questiontitile.gif) repeat-x;">
    <span style="height:20;padding:0 0 0 4;font-size:10pt;font-weight:bold;">消息中心</span>
    <p style="padding:4 0 4 2;">
        <html:link page="/msg.mrqa?action=gotlist">
            <%
                request.setAttribute("maxMessages",com.mr.qa.GlobalConfigs.MAX_MESSAGES);
            %>
            <c:set var="newMessageSize" value="${user_session.newMessageSize > maxMessages?maxMessages:user_session.newMessageSize}"/>
            收件箱<html:link page="/msg.mrqa?action=gotlist"><c:if test="${newMessageSize > 0}">:<c:out value="${newMessageSize}"/>条新</c:if></html:link>
        </html:link>
    </p>
    <p style="padding:4 0 4 2;"><html:link page="/msg.mrqa?action=sentlist">发件箱</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/msg.mrqa?action=preadd">发新消息</html:link></p>
</div>
<br>
<div style="padding:7 8 8 16;height:100;border:1px solid #CCC;background:url(qa/images/mr-qa-homepage-questiontitile.gif) repeat-x;">
    <span style="height:20;padding:0 0 0 4;font-size:10pt;font-weight:bold;">我的问吧</span>
    <p style="padding:4 0 4 2;"><html:link page="/user.mrqa?action=myquestions">我的帖子</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/user.mrqa?action=myanswers">我的回复</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/user.mrqa?action=mylinks">我的收藏</html:link></p>
    <c:if test="${user_session.type == '1'}">
    <br>
    <p style="padding:4 0 4 2;"><html:link action="/admin.mrqa">系统管理</html:link></p>
    </c:if>
</div>
<br>
<div style="padding:7 8 8 16;height:100;border:1px solid #CCC;background:url(qa/images/mr-qa-homepage-questiontitile.gif) repeat-x;">
    <span style="height:20;padding:0 0 0 4;font-size:10pt;font-weight:bold;">积分换礼</span>
    <c:if test="${user_session.type == '1'}">
    <p style="padding:4 0 4 2;"><html:link page="/shopcategory.mrqa?action=admin">分类管理</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/shoparticle.mrqa?action=admin">礼品管理</html:link></p>
    </c:if>
    <p style="padding:4 0 4 2;"><html:link page="/shoparticle.mrqa?action=exchangelist">兑换</html:link></p>
    <p style="padding:4 0 4 2;"><html:link page="/shoparticle.mrqa?action=precontribute">捐赠</html:link></p>  
</div>
